package com.github.shiqiyue.app.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.shiqiyue.app.common.entity.BaseEntity;
import lombok.Data;

/**
 * <p>
 * 用户-权限
 * </p>
 *
 * @author wenyao.wu
 * @since 2018-10-30
 */
@Data
@TableName("sys_user_permission")
public class UserPermission extends BaseEntity {
    /**
     * 数据库字段-ID
     */
    public static final String ID = "id";

    /**
     * 数据库字段-添加时间
     */
    public static final String ADD_DATE = "add_date";

    /**
     * 数据库字段-修改时间啊
     */
    public static final String EDIT_DATE = "edit_date";
    /**
     * 数据库字段-用户id
     */
    public static final String USER_ID = "user_id";
    /**
     * 数据库字段-权限id
     */
    public static final String PERMISSION_ID = "permission_id";
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 权限id
     */
    private Long permissionId;


    @TableField(exist = false)
    private Permission permission;

}
